<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonCategoryLayout类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_category_layout.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_s_a_ribbon_category_layout-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonCategoryLayout类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_s_a_ribbon_category_layout.html" title="The SARibbonCategoryLayout class">SARibbonCategoryLayout</a> class  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_category_layout_8h_source.html">SARibbonCategoryLayout.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonCategoryLayout 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_category_layout.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_category_layout_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The SARibbonCategoryLayoutPrivate class  <a href="class_s_a_ribbon_category_layout_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a91938313c3a901f0b3971a865bdc1df2" id="r_a91938313c3a901f0b3971a865bdc1df2"><td class="memItemLeft" align="right" valign="top"><a id="a91938313c3a901f0b3971a865bdc1df2" name="a91938313c3a901f0b3971a865bdc1df2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonCategoryLayout</b> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *parent)</td></tr>
<tr class="separator:a91938313c3a901f0b3971a865bdc1df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc334af656ff0e9c8b76d7bafa985100" id="r_abc334af656ff0e9c8b76d7bafa985100"><td class="memItemLeft" align="right" valign="top"><a id="abc334af656ff0e9c8b76d7bafa985100" name="abc334af656ff0e9c8b76d7bafa985100"></a>
<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>ribbonCategory</b> () const</td></tr>
<tr class="separator:abc334af656ff0e9c8b76d7bafa985100"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e61163b4d0b8c99dc4e7cb75a428921" id="r_a7e61163b4d0b8c99dc4e7cb75a428921"><td class="memItemLeft" align="right" valign="top"><a id="a7e61163b4d0b8c99dc4e7cb75a428921" name="a7e61163b4d0b8c99dc4e7cb75a428921"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>addItem</b> (QLayoutItem *item) override</td></tr>
<tr class="separator:a7e61163b4d0b8c99dc4e7cb75a428921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7fd7b3c31ef1a32aa24cdcc9ed8311" id="r_a3d7fd7b3c31ef1a32aa24cdcc9ed8311"><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3d7fd7b3c31ef1a32aa24cdcc9ed8311">itemAt</a> (int index) const override</td></tr>
<tr class="memdesc:a3d7fd7b3c31ef1a32aa24cdcc9ed8311"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回pannel的layout  <br /></td></tr>
<tr class="separator:a3d7fd7b3c31ef1a32aa24cdcc9ed8311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d952c5ae44eba4722bcf99c9561b521" id="r_a6d952c5ae44eba4722bcf99c9561b521"><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6d952c5ae44eba4722bcf99c9561b521">takeAt</a> (int index) override</td></tr>
<tr class="memdesc:a6d952c5ae44eba4722bcf99c9561b521"><td class="mdescLeft">&#160;</td><td class="mdescRight">提取layout  <br /></td></tr>
<tr class="separator:a6d952c5ae44eba4722bcf99c9561b521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ec203290d71b745638270726edc5604" id="r_a7ec203290d71b745638270726edc5604"><td class="memItemLeft" align="right" valign="top"><a id="a7ec203290d71b745638270726edc5604" name="a7ec203290d71b745638270726edc5604"></a>
<a class="el" href="class_s_a_ribbon_category_layout_item.html">SARibbonCategoryLayoutItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>takePannelItem</b> (int index)</td></tr>
<tr class="separator:a7ec203290d71b745638270726edc5604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9b6ee5e6573e08d1f9345b4a6d58283" id="r_af9b6ee5e6573e08d1f9345b4a6d58283"><td class="memItemLeft" align="right" valign="top"><a id="af9b6ee5e6573e08d1f9345b4a6d58283" name="af9b6ee5e6573e08d1f9345b4a6d58283"></a>
<a class="el" href="class_s_a_ribbon_category_layout_item.html">SARibbonCategoryLayoutItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>takePannelItem</b> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="separator:af9b6ee5e6573e08d1f9345b4a6d58283"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a054a8eb1b1aa34a9153e5adec175be24" id="r_a054a8eb1b1aa34a9153e5adec175be24"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a054a8eb1b1aa34a9153e5adec175be24">takePannel</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:a054a8eb1b1aa34a9153e5adec175be24"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除pannel，对应的分割线也会删除  <br /></td></tr>
<tr class="separator:a054a8eb1b1aa34a9153e5adec175be24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1288c7db88f9769be4c8274b91f7843a" id="r_a1288c7db88f9769be4c8274b91f7843a"><td class="memItemLeft" align="right" valign="top"><a id="a1288c7db88f9769be4c8274b91f7843a" name="a1288c7db88f9769be4c8274b91f7843a"></a>
virtual int&#160;</td><td class="memItemRight" valign="bottom"><b>count</b> () const override</td></tr>
<tr class="separator:a1288c7db88f9769be4c8274b91f7843a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17b24790c474ed6d51b3d053f8f9a4d6" id="r_a17b24790c474ed6d51b3d053f8f9a4d6"><td class="memItemLeft" align="right" valign="top"><a id="a17b24790c474ed6d51b3d053f8f9a4d6" name="a17b24790c474ed6d51b3d053f8f9a4d6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGeometry</b> (const QRect &amp;rect) override</td></tr>
<tr class="separator:a17b24790c474ed6d51b3d053f8f9a4d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a558596e1cbd89bcea4aaed7ba4919a90" id="r_a558596e1cbd89bcea4aaed7ba4919a90"><td class="memItemLeft" align="right" valign="top"><a id="a558596e1cbd89bcea4aaed7ba4919a90" name="a558596e1cbd89bcea4aaed7ba4919a90"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const override</td></tr>
<tr class="separator:a558596e1cbd89bcea4aaed7ba4919a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5307333f919c9bff6c79da6515d7f69" id="r_ae5307333f919c9bff6c79da6515d7f69"><td class="memItemLeft" align="right" valign="top"><a id="ae5307333f919c9bff6c79da6515d7f69" name="ae5307333f919c9bff6c79da6515d7f69"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>minimumSize</b> () const override</td></tr>
<tr class="separator:ae5307333f919c9bff6c79da6515d7f69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a000971378b1c426b514a58470c43f62a" id="r_a000971378b1c426b514a58470c43f62a"><td class="memItemLeft" align="right" valign="top">Qt::Orientations&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a000971378b1c426b514a58470c43f62a">expandingDirections</a> () const override</td></tr>
<tr class="memdesc:a000971378b1c426b514a58470c43f62a"><td class="mdescLeft">&#160;</td><td class="mdescRight">SARibbonCategory充满整个stacked widget  <br /></td></tr>
<tr class="separator:a000971378b1c426b514a58470c43f62a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a658be834cd8babf56af45237e3010085" id="r_a658be834cd8babf56af45237e3010085"><td class="memItemLeft" align="right" valign="top"><a id="a658be834cd8babf56af45237e3010085" name="a658be834cd8babf56af45237e3010085"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>invalidate</b> () override</td></tr>
<tr class="separator:a658be834cd8babf56af45237e3010085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace625605f550437789b6ba356429cb65" id="r_ace625605f550437789b6ba356429cb65"><td class="memItemLeft" align="right" valign="top"><a id="ace625605f550437789b6ba356429cb65" name="ace625605f550437789b6ba356429cb65"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addPannel</b> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="separator:ace625605f550437789b6ba356429cb65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf47944b2b5813e0223fe715d5119485" id="r_acf47944b2b5813e0223fe715d5119485"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acf47944b2b5813e0223fe715d5119485">insertPannel</a> (int index, <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:acf47944b2b5813e0223fe715d5119485"><td class="mdescLeft">&#160;</td><td class="mdescRight">插入一个pannel  <br /></td></tr>
<tr class="separator:acf47944b2b5813e0223fe715d5119485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef54b7cc4b1097273348e37b01199e1f" id="r_aef54b7cc4b1097273348e37b01199e1f"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aef54b7cc4b1097273348e37b01199e1f">categoryContentSize</a> () const</td></tr>
<tr class="memdesc:aef54b7cc4b1097273348e37b01199e1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">category的内容尺寸（把margins减去）  <br /></td></tr>
<tr class="separator:aef54b7cc4b1097273348e37b01199e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb1e000a1dc60b237a8fb50eaf06699a" id="r_afb1e000a1dc60b237a8fb50eaf06699a"><td class="memItemLeft" align="right" valign="top"><a id="afb1e000a1dc60b237a8fb50eaf06699a" name="afb1e000a1dc60b237a8fb50eaf06699a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGeometryArr</b> ()</td></tr>
<tr class="memdesc:afb1e000a1dc60b237a8fb50eaf06699a"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新尺寸 <br /></td></tr>
<tr class="separator:afb1e000a1dc60b237a8fb50eaf06699a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2d97b002ddd6135726faf36dba4de6" id="r_a3c2d97b002ddd6135726faf36dba4de6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3c2d97b002ddd6135726faf36dba4de6">doLayout</a> ()</td></tr>
<tr class="memdesc:a3c2d97b002ddd6135726faf36dba4de6"><td class="mdescLeft">&#160;</td><td class="mdescRight">执行layout调整  <br /></td></tr>
<tr class="separator:a3c2d97b002ddd6135726faf36dba4de6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5c59bffbff21d33b3b0f3647de6db55" id="r_ae5c59bffbff21d33b3b0f3647de6db55"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae5c59bffbff21d33b3b0f3647de6db55">pannels</a> () const</td></tr>
<tr class="memdesc:ae5c59bffbff21d33b3b0f3647de6db55"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回所有pannels  <br /></td></tr>
<tr class="separator:ae5c59bffbff21d33b3b0f3647de6db55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8addeb6836a367b309828c45a80765" id="r_a7b8addeb6836a367b309828c45a80765"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7b8addeb6836a367b309828c45a80765">pannelByObjectName</a> (const QString &amp;objname) const</td></tr>
<tr class="memdesc:a7b8addeb6836a367b309828c45a80765"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过ObjectName查找pannel  <br /></td></tr>
<tr class="separator:a7b8addeb6836a367b309828c45a80765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a813f029ad9f28e4b06742ed47b7ec5e1" id="r_a813f029ad9f28e4b06742ed47b7ec5e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a813f029ad9f28e4b06742ed47b7ec5e1">pannelByName</a> (const QString &amp;pannelname) const</td></tr>
<tr class="memdesc:a813f029ad9f28e4b06742ed47b7ec5e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过名字查找pannel  <br /></td></tr>
<tr class="separator:a813f029ad9f28e4b06742ed47b7ec5e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2490240f545264117e1e7ef2d8ac809" id="r_ab2490240f545264117e1e7ef2d8ac809"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab2490240f545264117e1e7ef2d8ac809">pannelByIndex</a> (int i) const</td></tr>
<tr class="memdesc:ab2490240f545264117e1e7ef2d8ac809"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过索引找到pannel，如果超过索引范围，会返回nullptr  <br /></td></tr>
<tr class="separator:ab2490240f545264117e1e7ef2d8ac809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d593ec3cda7e14d3bc65b7d63b37736" id="r_a6d593ec3cda7e14d3bc65b7d63b37736"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6d593ec3cda7e14d3bc65b7d63b37736">movePannel</a> (int from, int to)</td></tr>
<tr class="memdesc:a6d593ec3cda7e14d3bc65b7d63b37736"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动pannel  <br /></td></tr>
<tr class="separator:a6d593ec3cda7e14d3bc65b7d63b37736"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cf0bf05c6b0078e48c15f8db9553f3f" id="r_a8cf0bf05c6b0078e48c15f8db9553f3f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8cf0bf05c6b0078e48c15f8db9553f3f">pannelCount</a> () const</td></tr>
<tr class="memdesc:a8cf0bf05c6b0078e48c15f8db9553f3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回pannel的个数  <br /></td></tr>
<tr class="separator:a8cf0bf05c6b0078e48c15f8db9553f3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23ba77746c44d93c86e1c302486f2f8c" id="r_a23ba77746c44d93c86e1c302486f2f8c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a23ba77746c44d93c86e1c302486f2f8c">pannelIndex</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *p) const</td></tr>
<tr class="memdesc:a23ba77746c44d93c86e1c302486f2f8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找pannel对应的索引  <br /></td></tr>
<tr class="separator:a23ba77746c44d93c86e1c302486f2f8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ade3a023324d1e92c0b2e66d379d89e" id="r_a1ade3a023324d1e92c0b2e66d379d89e"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1ade3a023324d1e92c0b2e66d379d89e">pannelList</a> () const</td></tr>
<tr class="memdesc:a1ade3a023324d1e92c0b2e66d379d89e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取所有的pannel  <br /></td></tr>
<tr class="separator:a1ade3a023324d1e92c0b2e66d379d89e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fa7d24b4a2d96226cca6c672575d1af" id="r_a4fa7d24b4a2d96226cca6c672575d1af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4fa7d24b4a2d96226cca6c672575d1af">scroll</a> (int px)</td></tr>
<tr class="memdesc:a4fa7d24b4a2d96226cca6c672575d1af"><td class="mdescLeft">&#160;</td><td class="mdescRight">执行滚动  <br /></td></tr>
<tr class="separator:a4fa7d24b4a2d96226cca6c672575d1af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaae7f7bca308c37e30d6e641153fd05" id="r_afaae7f7bca308c37e30d6e641153fd05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afaae7f7bca308c37e30d6e641153fd05">scrollTo</a> (int targetX)</td></tr>
<tr class="memdesc:afaae7f7bca308c37e30d6e641153fd05"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚动到指定位置  <br /></td></tr>
<tr class="separator:afaae7f7bca308c37e30d6e641153fd05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad48c288f84c752d2ff7bef663367817a" id="r_ad48c288f84c752d2ff7bef663367817a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad48c288f84c752d2ff7bef663367817a">scrollByAnimate</a> (int px)</td></tr>
<tr class="memdesc:ad48c288f84c752d2ff7bef663367817a"><td class="mdescLeft">&#160;</td><td class="mdescRight">带动画的滚动  <br /></td></tr>
<tr class="separator:ad48c288f84c752d2ff7bef663367817a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f3fade75da02802a4078ada3fbc1884" id="r_a4f3fade75da02802a4078ada3fbc1884"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4f3fade75da02802a4078ada3fbc1884">scrollToByAnimate</a> (int targetX)</td></tr>
<tr class="memdesc:a4f3fade75da02802a4078ada3fbc1884"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚动到指定位置，带动画  <br /></td></tr>
<tr class="separator:a4f3fade75da02802a4078ada3fbc1884"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6b22b774768470e6059049953a05907" id="r_af6b22b774768470e6059049953a05907"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af6b22b774768470e6059049953a05907">scrollPosition</a> () const</td></tr>
<tr class="memdesc:af6b22b774768470e6059049953a05907"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚动后的位置  <br /></td></tr>
<tr class="separator:af6b22b774768470e6059049953a05907"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea54a492f581eec129a0f0f6707dfea9" id="r_aea54a492f581eec129a0f0f6707dfea9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aea54a492f581eec129a0f0f6707dfea9">setScrollPosition</a> (int pos)</td></tr>
<tr class="memdesc:aea54a492f581eec129a0f0f6707dfea9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置滚动位置  <br /></td></tr>
<tr class="separator:aea54a492f581eec129a0f0f6707dfea9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eee732197f785e7744e009deb219ab3" id="r_a5eee732197f785e7744e009deb219ab3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5eee732197f785e7744e009deb219ab3">isAnimatingScroll</a> () const</td></tr>
<tr class="memdesc:a5eee732197f785e7744e009deb219ab3"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否在滚动动画中  <br /></td></tr>
<tr class="separator:a5eee732197f785e7744e009deb219ab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a149e5c57bf54965c32df407cd589deb6" id="r_a149e5c57bf54965c32df407cd589deb6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a149e5c57bf54965c32df407cd589deb6">isScrolled</a> () const</td></tr>
<tr class="memdesc:a149e5c57bf54965c32df407cd589deb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否滚动过  <br /></td></tr>
<tr class="separator:a149e5c57bf54965c32df407cd589deb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a335d296ce884c13fadc87bdcb6bce2ee" id="r_a335d296ce884c13fadc87bdcb6bce2ee"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a335d296ce884c13fadc87bdcb6bce2ee">categoryTotalWidth</a> () const</td></tr>
<tr class="memdesc:a335d296ce884c13fadc87bdcb6bce2ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个宽度是实际内容的宽度，有可能大于size.width，也有可能小于  <br /></td></tr>
<tr class="separator:a335d296ce884c13fadc87bdcb6bce2ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f0014babe203a11429d1645bef71c16" id="r_a3f0014babe203a11429d1645bef71c16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3f0014babe203a11429d1645bef71c16">setCategoryAlignment</a> (SARibbonAlignment al)</td></tr>
<tr class="memdesc:a3f0014babe203a11429d1645bef71c16"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置Category的对齐方式  <br /></td></tr>
<tr class="separator:a3f0014babe203a11429d1645bef71c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedf7abe3da6560c2fecb5a942836713b" id="r_aedf7abe3da6560c2fecb5a942836713b"><td class="memItemLeft" align="right" valign="top">SARibbonAlignment&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aedf7abe3da6560c2fecb5a942836713b">categoryAlignment</a> () const</td></tr>
<tr class="memdesc:aedf7abe3da6560c2fecb5a942836713b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Category的对齐方式  <br /></td></tr>
<tr class="separator:aedf7abe3da6560c2fecb5a942836713b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1edd91fca04715d2c26a8198d7e7f85" id="r_af1edd91fca04715d2c26a8198d7e7f85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af1edd91fca04715d2c26a8198d7e7f85">setAnimationDuration</a> (int duration)</td></tr>
<tr class="memdesc:af1edd91fca04715d2c26a8198d7e7f85"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置动画的持续时间  <br /></td></tr>
<tr class="separator:af1edd91fca04715d2c26a8198d7e7f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8438079a0f7b5fb7f2a6ad560d76df0b" id="r_a8438079a0f7b5fb7f2a6ad560d76df0b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8438079a0f7b5fb7f2a6ad560d76df0b">animationDuration</a> () const</td></tr>
<tr class="memdesc:a8438079a0f7b5fb7f2a6ad560d76df0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">动画的持续时间，默认300ms  <br /></td></tr>
<tr class="separator:a8438079a0f7b5fb7f2a6ad560d76df0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:ab9a8eed6eeb405fe2df20b462bad4fb8" id="r_ab9a8eed6eeb405fe2df20b462bad4fb8"><td class="memItemLeft" align="right" valign="top"><a id="ab9a8eed6eeb405fe2df20b462bad4fb8" name="ab9a8eed6eeb405fe2df20b462bad4fb8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>scrollPosition</b></td></tr>
<tr class="separator:ab9a8eed6eeb405fe2df20b462bad4fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>The <a class="el" href="class_s_a_ribbon_category_layout.html" title="The SARibbonCategoryLayout class">SARibbonCategoryLayout</a> class </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a8438079a0f7b5fb7f2a6ad560d76df0b" name="a8438079a0f7b5fb7f2a6ad560d76df0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8438079a0f7b5fb7f2a6ad560d76df0b">&#9670;&#160;</a></span>animationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategoryLayout::animationDuration </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>动画的持续时间，默认300ms </p>
<dl class="section return"><dt>返回</dt><dd>如果没有设置动画，返回-1 </dd></dl>

</div>
</div>
<a id="aedf7abe3da6560c2fecb5a942836713b" name="aedf7abe3da6560c2fecb5a942836713b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedf7abe3da6560c2fecb5a942836713b">&#9670;&#160;</a></span>categoryAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonAlignment SARibbonCategoryLayout::categoryAlignment </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Category的对齐方式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aef54b7cc4b1097273348e37b01199e1f" name="aef54b7cc4b1097273348e37b01199e1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef54b7cc4b1097273348e37b01199e1f">&#9670;&#160;</a></span>categoryContentSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize SARibbonCategoryLayout::categoryContentSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>category的内容尺寸（把margins减去） </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a335d296ce884c13fadc87bdcb6bce2ee" name="a335d296ce884c13fadc87bdcb6bce2ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a335d296ce884c13fadc87bdcb6bce2ee">&#9670;&#160;</a></span>categoryTotalWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategoryLayout::categoryTotalWidth </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>这个宽度是实际内容的宽度，有可能大于size.width，也有可能小于 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a3c2d97b002ddd6135726faf36dba4de6" name="a3c2d97b002ddd6135726faf36dba4de6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c2d97b002ddd6135726faf36dba4de6">&#9670;&#160;</a></span>doLayout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::doLayout </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>执行layout调整 </p>
<p>这里不能用item-&gt;setGeometry(item-&gt;mWillSetGeometry);这样会得到一个很奇怪的显示效果 就是窗口的最左边不会移出去，而是把最右边压缩，</p>

</div>
</div>
<a id="a000971378b1c426b514a58470c43f62a" name="a000971378b1c426b514a58470c43f62a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a000971378b1c426b514a58470c43f62a">&#9670;&#160;</a></span>expandingDirections()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Qt::Orientations SARibbonCategoryLayout::expandingDirections </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>SARibbonCategory充满整个stacked widget </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="acf47944b2b5813e0223fe715d5119485" name="acf47944b2b5813e0223fe715d5119485"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf47944b2b5813e0223fe715d5119485">&#9670;&#160;</a></span>insertPannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::insertPannel </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>插入一个pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>索引 </td></tr>
    <tr><td class="paramname">pannel</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回对应的分割线SARibbonSeparatorWidget </dd></dl>
<dl class="section note"><dt>注解</dt><dd>在SARibbonCategoryLayout的布局中，一个pannel会携带一个分割线 </dd></dl>

</div>
</div>
<a id="a5eee732197f785e7744e009deb219ab3" name="a5eee732197f785e7744e009deb219ab3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eee732197f785e7744e009deb219ab3">&#9670;&#160;</a></span>isAnimatingScroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategoryLayout::isAnimatingScroll </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否在滚动动画中 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a149e5c57bf54965c32df407cd589deb6" name="a149e5c57bf54965c32df407cd589deb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a149e5c57bf54965c32df407cd589deb6">&#9670;&#160;</a></span>isScrolled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategoryLayout::isScrolled </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否滚动过 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a3d7fd7b3c31ef1a32aa24cdcc9ed8311" name="a3d7fd7b3c31ef1a32aa24cdcc9ed8311"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d7fd7b3c31ef1a32aa24cdcc9ed8311">&#9670;&#160;</a></span>itemAt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QLayoutItem * SARibbonCategoryLayout::itemAt </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回pannel的layout </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<dl class="section note"><dt>注解</dt><dd>注意，pannel是和分割线一起的，但这个只返回一个pannel对应的layout </dd></dl>

</div>
</div>
<a id="a6d593ec3cda7e14d3bc65b7d63b37736" name="a6d593ec3cda7e14d3bc65b7d63b37736"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d593ec3cda7e14d3bc65b7d63b37736">&#9670;&#160;</a></span>movePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::movePannel </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab2490240f545264117e1e7ef2d8ac809" name="ab2490240f545264117e1e7ef2d8ac809"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2490240f545264117e1e7ef2d8ac809">&#9670;&#160;</a></span>pannelByIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategoryLayout::pannelByIndex </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>i</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过索引找到pannel，如果超过索引范围，会返回nullptr </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a813f029ad9f28e4b06742ed47b7ec5e1" name="a813f029ad9f28e4b06742ed47b7ec5e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a813f029ad9f28e4b06742ed47b7ec5e1">&#9670;&#160;</a></span>pannelByName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategoryLayout::pannelByName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>pannelname</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过名字查找pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果有重名，只会返回第一个符合条件的 </dd></dl>

</div>
</div>
<a id="a7b8addeb6836a367b309828c45a80765" name="a7b8addeb6836a367b309828c45a80765"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b8addeb6836a367b309828c45a80765">&#9670;&#160;</a></span>pannelByObjectName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategoryLayout::pannelByObjectName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>objname</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过ObjectName查找pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">objname</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a8cf0bf05c6b0078e48c15f8db9553f3f" name="a8cf0bf05c6b0078e48c15f8db9553f3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cf0bf05c6b0078e48c15f8db9553f3f">&#9670;&#160;</a></span>pannelCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategoryLayout::pannelCount </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回pannel的个数 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a23ba77746c44d93c86e1c302486f2f8c" name="a23ba77746c44d93c86e1c302486f2f8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23ba77746c44d93c86e1c302486f2f8c">&#9670;&#160;</a></span>pannelIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategoryLayout::pannelIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>p</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>查找pannel对应的索引 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果找不到，返回-1 </dd></dl>

</div>
</div>
<a id="a1ade3a023324d1e92c0b2e66d379d89e" name="a1ade3a023324d1e92c0b2e66d379d89e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ade3a023324d1e92c0b2e66d379d89e">&#9670;&#160;</a></span>pannelList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt; SARibbonCategoryLayout::pannelList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取所有的pannel </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ae5c59bffbff21d33b3b0f3647de6db55" name="ae5c59bffbff21d33b3b0f3647de6db55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5c59bffbff21d33b3b0f3647de6db55">&#9670;&#160;</a></span>pannels()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt; SARibbonCategoryLayout::pannels </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回所有pannels </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a4fa7d24b4a2d96226cca6c672575d1af" name="a4fa7d24b4a2d96226cca6c672575d1af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fa7d24b4a2d96226cca6c672575d1af">&#9670;&#160;</a></span>scroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::scroll </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>px</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>执行滚动 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">px</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad48c288f84c752d2ff7bef663367817a" name="ad48c288f84c752d2ff7bef663367817a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad48c288f84c752d2ff7bef663367817a">&#9670;&#160;</a></span>scrollByAnimate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::scrollByAnimate </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>px</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>带动画的滚动 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">px</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af6b22b774768470e6059049953a05907" name="af6b22b774768470e6059049953a05907"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6b22b774768470e6059049953a05907">&#9670;&#160;</a></span>scrollPosition()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategoryLayout::scrollPosition </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>滚动后的位置 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="afaae7f7bca308c37e30d6e641153fd05" name="afaae7f7bca308c37e30d6e641153fd05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaae7f7bca308c37e30d6e641153fd05">&#9670;&#160;</a></span>scrollTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::scrollTo </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>targetX</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>滚动到指定位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">targetX</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4f3fade75da02802a4078ada3fbc1884" name="a4f3fade75da02802a4078ada3fbc1884"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f3fade75da02802a4078ada3fbc1884">&#9670;&#160;</a></span>scrollToByAnimate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::scrollToByAnimate </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>targetX</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>滚动到指定位置，带动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">px</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af1edd91fca04715d2c26a8198d7e7f85" name="af1edd91fca04715d2c26a8198d7e7f85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1edd91fca04715d2c26a8198d7e7f85">&#9670;&#160;</a></span>setAnimationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::setAnimationDuration </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>duration</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置动画的持续时间 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>毫秒 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3f0014babe203a11429d1645bef71c16" name="a3f0014babe203a11429d1645bef71c16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f0014babe203a11429d1645bef71c16">&#9670;&#160;</a></span>setCategoryAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::setCategoryAlignment </td>
          <td>(</td>
          <td class="paramtype">SARibbonAlignment</td>          <td class="paramname"><span class="paramname"><em>al</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置Category的对齐方式 </p>
<p>居中对齐会让pannel以居中进行对齐 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">al</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aea54a492f581eec129a0f0f6707dfea9" name="aea54a492f581eec129a0f0f6707dfea9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea54a492f581eec129a0f0f6707dfea9">&#9670;&#160;</a></span>setScrollPosition()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategoryLayout::setScrollPosition </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>pos</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置滚动位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">px</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6d952c5ae44eba4722bcf99c9561b521" name="a6d952c5ae44eba4722bcf99c9561b521"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d952c5ae44eba4722bcf99c9561b521">&#9670;&#160;</a></span>takeAt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QLayoutItem * SARibbonCategoryLayout::takeAt </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>提取layout </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a054a8eb1b1aa34a9153e5adec175be24" name="a054a8eb1b1aa34a9153e5adec175be24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a054a8eb1b1aa34a9153e5adec175be24">&#9670;&#160;</a></span>takePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategoryLayout::takePannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除pannel，对应的分割线也会删除 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_category_layout_8h_source.html">SARibbonCategoryLayout.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonCategoryLayout.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_category_layout.html">SARibbonCategoryLayout</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
